from fake_useragent import UserAgent
# 实例化一个对象
ua = UserAgent(path='src/fake_useragent_0.1.11.json')
# 随机获取一个ie浏览器ua
print(ua.ie)
print(ua.ie)
# 随机获取一个火狐浏览器ua
print(ua.firefox)
print(ua.firefox)
